/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package com.example.touch.communication.entities;

import java.util.ArrayList;
import org.simpleframework.xml.ElementList;
import org.simpleframework.xml.Root;

/**
 *
 * @author krist_000
 */
@Root
public class ContextAwareModel {

    @ElementList(name = "timeTables")
    private ArrayList<TimeTable> timeTables;
    
    public ArrayList<ActionList> getActions() {
        return actionLists;
    }

    public void setActions(ArrayList<ActionList> actions) {
        this.actionLists = actions;
    }
    
    @ElementList
    private ArrayList<Event> events;
    
    @ElementList
    private ArrayList<ActionList> actionLists;
    
    public ArrayList<Event> getEvents() {
        return events;
    }

    public void setEvents(ArrayList<Event> events) {
        this.events = events;
    }

    public ArrayList<TimeTable> getTimeTables() {
        return timeTables;
    }

    public void setTimeTables(ArrayList<TimeTable> timeTables) {
        this.timeTables = timeTables;
    }
    
//    public ArrayList<SimpleAction> getSimpleActions() {
//        return simpleActions;
//    }
//
//    public void setSimpleActions(ArrayList<SimpleAction> simpleActions) {
//        this.simpleActions = simpleActions;
//    }
//
//    public ArrayList<SequentialAction> getSequentialAction() {
//        return sequentialActions;
//    }
//
//    public void setSequentialAction(ArrayList<SequentialAction> sequentialActions) {
//        this.sequentialActions = sequentialActions;
//    }
//
//    public ArrayList<ParallelAction> getParallelAction() {
//        return parallelActions;
//    }
//
//    public void setParallelAction(ArrayList<ParallelAction> parallelActions) {
//        this.parallelActions = parallelActions;
//    }

    @Override
    public String toString() {
        String str = "";
        for(TimeTable timeTable : timeTables)
        {
            str += timeTable.toString();
        }

        for(Event event : events)
        {
            str += event.toString();
        }
        
//        for(SimpleAction action : simpleActions)
//        {
//            str += action.toString();
//        }
//        for(SequentialAction action : sequentialActions)
//        {
//            str += action.toString();
//        }
//        for(ParallelAction action : parallelActions)
//        {
//            str += action.toString();
//        }
        str += "\n";
        return str;
    }
}
